package org.openfans.domain;

import java.util.Date;
import java.util.Set;

/**
 * Desc：一个url对应的网摘<br>
 * Date：2007-1-29<br>
 * 
 * @author pesome<br>
 * @email:pesome@gmail.com<br>
 */
public class Snippet {
	private int id;

	private String url;

	private String title;

	private String descn;

	private int snippetCount;

	private Date snippetDate;
	
	private Set<Tag> tagSet;

	private boolean privat;

	/**
	 * 最早收藏这个网摘的fans
	 */
	private Fans fans;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getSnippetCount() {
		return snippetCount;
	}

	public void setSnippetCount(int snippetCount) {
		this.snippetCount = snippetCount;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public void increaseSnippetCount() {
		this.snippetCount++;
	}

	public String getDescn() {
		return descn;
	}

	public void setDescn(String descn) {
		this.descn = descn;
	}

	public Date getSnippetDate() {
		return snippetDate;
	}

	public void setSnippetDate(Date snippetDate) {
		this.snippetDate = snippetDate;
	}

	public Fans getFans() {
		return fans;
	}

	public void setFans(Fans fans) {
		this.fans = fans;
	}

	public boolean isPrivat() {
		return privat;
	}

	public void setPrivat(boolean privat) {
		this.privat = privat;
	}

	public Set<Tag> getTagSet() {
		return tagSet;
	}

	public void setTagSet(Set<Tag> tagSet) {
		this.tagSet = tagSet;
	}

}
